﻿@model Piedone.ContentWidgets.ViewModels.ContentWidgetsViewModel

@{
    Style.Require("ContentWidgets_Admin");
}

<fieldset>
    <legend>@T("Content Widgets Settings")</legend>
    <span class="hint">@T("Uncheck the widgets you don't want to display with this item.")</span>
    <ul id="piedone-content-widgets-item-widget-list">
    @for (int i = 0; i < Model.Widgets.Count; i++)
    {
        <li style="display: inline-block;">
            @Html.HiddenFor(m => m.Widgets[i].Id)
            @Html.CheckBoxFor(m => m.Widgets[i].IsAttached)
            <label for="@Html.FieldIdFor(m => m.Widgets[i].IsAttached)" class="forcheckbox">@Model.Widgets[i].Title</label>
        </li>
    }
    </ul>
</fieldset>